package com.freewater.springboot.demo.aop.combine;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;

@Aspect
public class CombinePointcut {

    @Pointcut("execution(public * *(..))")
    public void anyPublicOperation() {

    }

    @Pointcut("within(com.xyz.myapp.trading..*)")
    public void inTrading() {

    }

    @Pointcut("anyPublicOperation() && inTrading()")
    public void tradingOperation() {

    }
}
